<?php defined('SYSPATH') OR die('No direct access allowed.') ?>
<?php echo Form::open($controller.'/'.$action.'/short'.($id?'/'.$id:''), array('id'=>'createuser_form','class'=>'form-horizontal','role'=>'form')) ?>
  <div class="form-group">
    <label for="inputUsername1" class="col-lg-3 control-label">Логин</label>
    <div class="col-lg-9">
      <input name="username" type="text" class="form-control" id="inputUsername1" placeholder="Логин" value="<?php echo $user['username'] ?>">
    </div>
  </div>
  <div class="form-group">
    <label for="inputEmail1" class="col-lg-3 control-label">Email</label>
    <div class="col-lg-9">
      <input name="email" type="email" class="form-control" id="inputEmail1" placeholder="Email" value="<?php echo $user['email'] ?>">
    </div>
  </div>
  <div class="form-group">
    <label for="inputPassword1" class="col-lg-3 control-label">Пароль</label>
    <div class="col-lg-9">
      <input name="password" type="password" class="form-control" id="inputPassword1" placeholder="Пароль">
    </div>
  </div>
    <div class="form-group">
    <label for="inputPassword2" class="col-lg-3 control-label">Подтверждение пароля</label>
    <div class="col-lg-9">
      <input name="password_confirm" type="password" class="form-control" id="inputPassword2" placeholder="Подтверждение пароля">
    </div>
  </div>
  
    <div class="form-group">
    <label for="inputSelect" class="col-lg-3 control-label">Роль</label>
    <div class="col-lg-9">
      <?php echo Form::select('role', $roles, $user['role_id'], array('class'=>'form-control')) ?>
    </div>
  </div>

</form>
